{include file="./public/static/block/admin/head.html"}
{include file="./public/static/block/admin/nav.html"}
<!--/. NAV TOP  -->
{include file="./public/static/block/admin/leftNav.html"}
<!-- /. NAV SIDE  -->
<div id="page-wrapper">
    <div id="page-inner">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
                    专家信息管理 <small>用于管理专家信息</small>
                </h1>

            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
             专家列表
             <div style="float: right;padding-top:5px;"><a style="padding: 5px 20px;background: #32C2CD;color: #fff;border-radius: 5px;" href="{:url('expert/add')}">新增专家</a></div>
         </div>
         <div style="padding:15px;overflow: hidden;">
             <form action="{:url('expert/index')}" method="post">
                <input style="padding:0 5px;display: block;height:30px;float: left;" type="input" name="search" value="{$search}" placeholder='查询专家名称或ID'>
                <input style="outline: none;border:none;background: #32C2CD;color:#fff;padding:0 15px;display: block;float: left;height:30px;margin-left: 10px;" type="submit" name="查询">
            </form>
           

        </div>
        <div style="clear: none;padding:0 15px 15px 15px;overflow: hidden;">
                省份筛选:
            <select style="padding: 3px 10px;outline: none;border: none;border: 1px solid #ccc;" name='province_id' id='province_select'>
                {volist name='provinces' id='province'}
                <option value="{$province.province_id}" {if $province_id==$province.province_id}selected=''{/if}>{$province.province_name}</option>
                {/volist}
            </select>
           </div>
           <script type="text/javascript">
                $('#province_select').change(function(){
                    var _val=$(this).find('option:selected').val();
                    window.location.href="/admin.php/expert/index/province_id/"+_val+".html";
                });
            </script>
        <div class="panel-body">
         <div class="table-responsive" style="overflow: hidden;">
         <style type="text/css">
            thead tr th{
                text-align: center;
            }
            tbody tr td{
                vertical-align: middle !important;
                text-align: center;
             }
             tbody tr td img{
                width:150px !important;
             }
         </style>
            <table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" aria-describedby="dataTables-example_info">
                <thead>
                    <tr role="row">
                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending" style="width: 148px;">专家ID</th>
                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending" style="width: 148px;">专家名称</th>
                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending" style="width: 148px;">分类</th>
                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending" style="width: 148px;">属性</th>
                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending" style="width: 148px;">省份</th>
                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending" aria-sort="ascending" style="width: 148px;">地区</th>
                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 230px;">介绍</th>
                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 209px;">封面图</th>
                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 125px;">价格</th>
                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 88px;">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name='list' id='expert'}
                    <tr class="gradeA odd">
                        <td class="sorting_1">{$expert.product_id}</td>
                        <td class="sorting_1">{$expert.name}</td>
                        <td class="">{$expert.cate_id|get_cate_name}</td>
                        <td class="">{$expert.spec}</td>
                        <td class="">{$expert.province_name}</td>
                        <td class="">{$expert.region}</td>
                        <td class="">{$expert.desc}</td>
                        <td class=" "><img style="width: 100px" src="{$expert.cover|get_img_url}"></td>
                        <td class="center ">{$expert.price}</td>
                        <td class="center ">
                            <div style="width:80px;">
                                <a href="{:url('expert/edit',['product_id'=>$expert.product_id])}">修改</a> |
                                <a href="{:url('expert/delete',['product_id'=>$expert.product_id])}">删除</a>
                            </div>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
            <div style="height: 54px">
                <div style="margin: 20px 0;border-radius: 4px;float: right;line-height: 34px;padding-left: 20px;">共{$total}条数据</div>
                <style type="text/css">
                    .pagination{
                        float: right;
                    }
                </style>
                {$list->render()} 
            </div>

        </div>

    </div>
</div>





</div>

</div>
<!-- /. PAGE WRAPPER  -->






{include file="./public/static/block/admin/foot.html"}